package com.itboye.mengwu.app.ui.mymeng;

import android.content.Intent;
import android.text.style.ClickableSpan;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;
import android.widget.TextView;

import com.itboye.core.object.BaseActivity;
import com.itboye.mengwu.R;
import com.itboye.mengwu.data.model.OrderDetailBean;

public class ActivityShenQingShouHou extends BaseActivity implements
		OnClickListener {
	TextView txt_title;
	ImageView back;
	TextView tuihuotuikuan, jintuikuan, huanhuo;
	String orderCode;
	OrderDetailBean orderDetailBean;
	@Override
	public int initView() {
		// TODO Auto-generated method stub
		return R.layout.activity_shenqingshouhou;
	}

	@Override
	public void onMyCreate() {
		// TODO Auto-generated method stub
		txt_title.setText("申请售后");
		orderDetailBean=(OrderDetailBean) getIntent().getSerializableExtra("model");
	}

	@Override
	public void onClick(View v) {
		// TODO Auto-generated method stub
		switch (v.getId()) {
		case R.id.back:
			finish();
			break;
		case R.id.tuihuotuikuan:
			Intent intent = new Intent(ActivityShenQingShouHou.this,
					ActivityTuiHuoTuiKuan.class);
			intent.putExtra("model", orderDetailBean);
			startActivity(intent);
			break;
		case R.id.jintuikuan:
			Intent intent2 = new Intent(ActivityShenQingShouHou.this,
					ActivityTuiKuan.class);
			intent2.putExtra("model", orderDetailBean);
			startActivity(intent2);
			break;
		case R.id.huanhuo:
			Intent intent3 = new Intent(ActivityShenQingShouHou.this,
					ActivityTuiHuo.class);
			intent3.putExtra("model", orderDetailBean);
			startActivity(intent3);
			break;
		default:
			break;
		}
	}
}
